/**
 * “通讯录群组”相关接口
 */
import request from '@/utils/request'

export default {
    //部门通讯录树查询
    queryDeptGroup(data) {
        return request({
          url: '/deptGroup/getDeptGroup',
          method: 'post',
          data
        })
    },
  //部门通讯录树查询
  addDeptGroup(data) {
    return request({
      url: '/deptGroup/addDeptGroup',
      method: 'post',
      data
    })
  },
  //部门通讯录树查询
  updateDeptGroup(data) {
    return request({
      url: '/deptGroup/updateDeptGroup',
      method: 'post',
      data
    })
  },
  deleteDeptGroup(data) {
    return request({
      url: '/deptGroup/deleteDeptGroup',
      method: 'post',
      data
    })
  },
    //个人通讯录树查询
    queryPersonGroup(data) {
        return request({
          url: '/personGroup/getPersonGroup',
          method: 'post',
          data
        })
    },
  //个人通讯录树查询
  addPersonGroup(data) {
    return request({
      url: '/personGroup/addPersonGroup',
      method: 'post',
      data
    })
  },
  //个人通讯录树数据修改
  updatePersonGroup(data) {
    return request({
      url: '/personGroup/updatePersonGroup',
      method: 'post',
      data
    })
  },
  //个人通讯录树数据删除
  deletePersonGroup(data) {
    return request({
      url: '/personGroup/deletePersonGroup',
      method: 'post',
      data
    })
  },
    //个人通讯录数据查询
    queryPersonGroupPhnum(data) {
      return request({
        url: '/personGroup/getPersonGroupPhnum',
        method: 'post',
        data
      })
    },
  //单位通讯录数据查询
  queryAdminGroupPhnum(data){
    return request({
      url: '/deptGroup/getDeptGroupPhnum',
      method: 'post',
      data
    })
  },
    //个人通讯录数据新增
    addPersonGroupPhnum(data) {
      return request({
        url: '/personGroup/addPersonGroupPhnum',
        method: 'post',
        data
      })
    },

  //单位通讯录数据新增
  addDeptGroupPhnum(data) {
    return request({
      url: '/deptGroup/addDeptGroupPhnum',
      method: 'post',
      data
    })
  },
    //个人通讯录数据修改
    updatePersonGroupPhnum(data) {
      return request({
        url: '/personGroup/updatePersonGroupPhnum',
        method: 'post',
        data
      })
    },
  //个人通讯录数据删除
  deletePersonGroupPhnum(data) {
    return request({
      url: '/personGroup/deletePersonGroupPhnum',
      method: 'post',
      data
    })
  },
  //单位通讯录数据删除
  deleteDeptGroupPhnum(data) {
    return request({
      url: '/deptGroup/deleteDeptGroupPhnum',
      method: 'post',
      data
    })
  },
  //单位通讯录数据修改
  updateDeptGroupPhnum(data) {
    return request({
      url: '/deptGroup/updateDeptGroupPhnum',
      method: 'post',
      data
    })
  },
}

